<%@ page language="java" contentType="text/html; charset=utf8"
    pageEncoding="utf8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf8">
<title>Insert title here</title>
</head>

<link rel="stylesheet" href="/hospital-system/bootstrap-5.3.0/css/bootstrap.css">
<body style="background: url('../image/hospital2.jpg'); 
background-size: 100%; background-attachment: fixed;">
<nav class="navbar navbar-dark bg-dark ">
  <span class="navbar-brand mb-auto h1 mr-auto my-10  navbar-nav-scroll">欢迎使用医院就诊系统</span>
</nav>
	<div class="container mt-2">
		<%--<span id="msgError" style="color: red">${sessionScope.msgError}</span>--%>
		<form action="/hospital-system/mangerInsertServlet" method="post" class="mt-3"  onsubmit="return ceheck()">
		 <div class="mb-3 row">
			    <label for="password" class="col-sm-2 col-form-label">排班编号:</label>
			    <div class="col-sm-10">
			      <input type="text"  class="form-control" id="RMax" name="Rid">
			    </div>
			  </div>
			 <div class="mb-3 row">
			    <label for="sbirth" class="col-sm-2 col-form-label">上班日期:</label>
			    <div class="col-sm-10">
			      <input  type="date" class="form-control" id="Rdate" name="Rdate" >
			    </div>
			  </div>	
			  
			   <div class="mb-3 row">
			    <label for="password" class="col-sm-2 col-form-label">人数最大值:</label>
			    <div class="col-sm-10">
			      <input type="text"  class="form-control" id="RMax" name="RMax">
			    </div>
			  </div>
			   <div class="mb-3 row">
			    <label for="password" class="col-sm-2 col-form-label">医生编号:</label>
			    <div class="col-sm-10">
			      <input type="text"  class="form-control" id="Did" name="Did" value=${param.did}>
			    </div>
			  </div>
			   <div class="mb-3 row">
			    <label for="password" class="col-sm-2 col-form-label">医生姓名:</label>
			    <div class="col-sm-10">
			      <input type="text"  class="form-control" id="Dname" name="Dname" value=${param.dname}>
			    </div>
			  </div>
			   <div class="mb-3 row">
			    <label for="password" class="col-sm-2 col-form-label">科室编号:</label>
			    <div class="col-sm-10">
			      <input type="text"  class="form-control" id="Cid" name="Cid" value=${param.cid}>
			    </div>
			  </div>
			   <div class="mb-3 row">
			    <label for="password" class="col-sm-2 col-form-label">科室姓名:</label>
			    <div class="col-sm-10">
			      <input type="text"  class="form-control" id="Cname" name="Cname" value=${param.cname}>
			    </div>
			  </div>
			  <div class="mb-3 row">
			  <label for="sdept" class="col-sm-2 form-label"></label>		  
			    <div class="col-sm-3">
			      <input type="submit" class="form-control btn btn-primary" value="录入" >
			    </div>
			  </div>
		  
		</form>
			</div>
</body>
<script src="/hospital-system/js/jquery-3.6.1.min.js"></script>
<script>
	/**
	 * 校验表单
	 * @returns {boolean}
	 */
	function ceheck() {
		var RMax=$("#RMax").val();
		if(RMax==null||RMax==''){
			alert("排班ID不能为空");
			return false;
		}
        return true;
	}

</script>
</html>